package com.bean;

/**
 * 供货商品商品表实体类
 */

import java.io.Serializable;

public class ChooseCommodity implements Serializable {
    /*主键*/
    private Integer id;
    /*类型*/
    private Integer type;
    /*名字*/
    private String name;
    /*商品进价*/
    private Double price;
    /*商品库存*/
    private Integer amonut;
    /*描述*/
    private String describes;
    /*供货商id*/
    private Integer providerId;
    //创建供货商信息，去拿到供货商的名字
    private Provider provider;


    public ChooseCommodity(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getAmonut() {
        return amonut;
    }

    public void setAmonut(Integer amonut) {
        this.amonut = amonut;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public Integer getProviderId() {
        return providerId;
    }

    public void setProviderId(Integer providerId) {
        this.providerId = providerId;
    }

    public Provider getProvider() {
        return provider;
    }

    public void setProvider(Provider provider) {
        this.provider = provider;
    }

    public ChooseCommodity() {
    }

    public ChooseCommodity(Integer id, Integer type, String name, Double price, Integer amonut, String describes, Integer providerId, Provider provider) {
        this.id = id;
        this.type = type;
        this.name = name;
        this.price = price;
        this.amonut = amonut;
        this.describes = describes;
        this.providerId = providerId;
        this.provider = provider;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", amonut=" + amonut +
                ", describes='" + describes + '\'' +
                ", providerId=" + providerId +
                ", provider=" + provider +
                '}';
    }
}
